#include <fstream>
//#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main(){
	ifstream srcfile("in1.txt",ios::in);
	ofstream dsctfile("out1.txt",ios::app);
	int a,n=10;
	vector<vector<int> > v(3);
	while( n--){
		srcfile>>a;
		v[0].push_back(a);
	}
	sort(v[0].begin(),v[0].begin()+v[0].size());
	for( int i = 0; i<10; i++ ){
		dsctfile<<v[0][i]<<" ";
	}
	dsctfile<<endl<<"***";
	dsctfile.close();
	srcfile.close();
	return 0;
}
